﻿<UserControl x:Class="WindowsPhoneToolbox.Controls.EditManifestControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            xmlns:res="clr-namespace:WindowsPhoneToolbox"
             mc:Ignorable="d" Focusable="True"
             d:DesignHeight="1100" d:DesignWidth="300" IsVisibleChanged="UserControlIsVisibleChanged">
    <Grid x:Name="GrdMain" CacheMode="BitmapCache">
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal" Margin="0,0,0,5" >
                <TextBlock Text="{Binding Source={x:Static res:Resources.XMnfSelectProject}}"/> 
                <TextBlock x:Name="WaitReading" Text="{Binding Source={x:Static res:Resources.XWaitReading}}" Margin="10,0,0,0" Foreground="Red" Visibility="Collapsed" />
            </StackPanel>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="87*" />
                    <ColumnDefinition Width="13*" />
                </Grid.ColumnDefinitions>
                <ComboBox x:Name="CboProjects" Grid.Column="0" Margin="0,0,0,5" SelectionChanged="CboProjectsSelectionChanged" VerticalAlignment="Top" VerticalContentAlignment="Stretch" />
                <Button x:Name="BntRefresh" Grid.Column="1" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" ToolTip="{Binding Source={x:Static res:Resources.XMnfRefreshProjectTp}}" Margin="5,0,0,5" Click="BntRefreshClick" VerticalAlignment="Center">
                    <Button.Content>
                        <Image Source="/WindowsPhoneToolbox;component/Resources/Refresh.ico" Width="18" Height="18" />
                    </Button.Content>
                </Button>
            </Grid>
            <StackPanel Orientation="Horizontal">
                <Button x:Name="BntSave" Content="{Binding Source={x:Static res:Resources.XMnfBntSave}}" Margin="0,5,5,5" Padding="3" Click="BntSaveClick" />
                <Button x:Name="BntErro" Content="{Binding Source={x:Static res:Resources.XMnfBntViewerr}}" Margin="0,5,5,5" Padding="3" Click="BntErroClick" />
            </StackPanel>
            <StackPanel Orientation="Vertical">
                <StackPanel Orientation="Vertical">
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,5" >
                        <TextBlock Text="{Binding Source={x:Static res:Resources.XMnfTitleApp}}" Margin="0,0,5,0"/>
                        <CheckBox Content="{Binding Source={x:Static res:Resources.XMnfChkUpdTile}}" IsChecked="True" Name="ChkUpdTile" Click="ChkUpdTileClick" />
                    </StackPanel>
                    <TextBox x:Name="TxtTitle" Margin="0,0,0,5" TextChanged="TxtTitleTextChanged" MaxLength="59" />
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,5">
                        <TextBlock Text="{Binding Source={x:Static res:Resources.XMnfTokenId}}" Margin="0,0,5,0"/>
                        <CheckBox Content="{Binding Source={x:Static res:Resources.XMnfChkUpdTkId}}"  IsChecked="False" Name="ChkUpdToken" Click="ChkUpdTokenClick" />
                    </StackPanel>
                    <TextBox x:Name="TxtTokenID" Margin="0,0,0,5" MaxLength="64" TextChanged="TxtTokenIdTextChanged" />
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XMnfNoteTkId}}" Foreground="Red" TextWrapping="Wrap" Margin="5,0,0,5" FontSize="10" />
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XAuthor}}" Margin="0,0,0,5" />
                    <TextBox x:Name="TxtAuthor" Margin="0,0,0,5" MaxLength="64" TextChanged="TxtAuthorTextChanged" />
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XDescription}}" Margin="0,0,0,5" />
                    <TextBox x:Name="TxtDesc" Margin="0,0,0,5" MinHeight="40" MaxLength="128" TextChanged="TxtDescTextChanged" />
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XPublisher}}" Margin="0,0,0,5" />
                    <TextBox x:Name="TxtPublisher" Margin="0,0,0,5" MaxLength="54" TextChanged="TxtPublisherTextChanged" />
                    <TextBlock Text="{Binding Source={x:Static res:Resources.XVersion}}" Margin="0,0,0,5" />
                    <StackPanel x:Name="StackVersion" Orientation="Horizontal">
                        <TextBox x:Name="VerMaior" Margin="0,0,0,5" MinWidth="30" MaxLength="2" PreviewTextInput="VersionTextInput" TextChanged="VerMaiorTextChanged" />
                        <TextBlock Text="." Margin="3,0,3,5" />
                        <TextBox x:Name="VerMenor" Margin="0,0,0,5" MinWidth="30" MaxLength="2" PreviewTextInput="VersionTextInput" TextChanged="VerMenorTextChanged" />
                        <TextBlock Text="." Margin="3,0,3,5" />
                        <TextBox x:Name="VerRev" Margin="0,0,0,5" MinWidth="30" MaxLength="2" PreviewTextInput="VersionTextInput" TextChanged="VerRevTextChanged" />
                        <TextBlock Text="." Margin="3,0,3,5" />
                        <TextBox x:Name="VerBuild" Margin="0,0,0,5" MinWidth="40" MaxLength="4" PreviewTextInput="VersionTextInput" TextChanged="VerBuildTextChanged" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"  Margin="0,0,0,5">
                        <TextBlock Text="{Binding Source={x:Static res:Resources.XIconFile}}" Margin="0,0,10,0"/>
                        <TextBlock x:Name="RefreshIcons" Text="{Binding Source={x:Static res:Resources.XRefresh}}" Foreground="{StaticResource {x:Static SystemColors.HotTrackBrushKey}}" Cursor="Hand" ToolTip="{Binding Source={x:Static res:Resources.XRefreshImgTp}}" MouseLeftButtonUp="RefreshIconsMouseLeftButtonUp" MouseEnter="RefreshMouseEnter" MouseLeave="RefreshMouseLeave"></TextBlock>
                    </StackPanel>

                    <ComboBox x:Name="CboIconAppp" Margin="0,0,0,5" SelectionChanged="CboIconApppSelectionChanged" />
                    <StackPanel Orientation="Horizontal"  Margin="0,0,0,5">
                        <TextBlock Text="{Binding Source={x:Static res:Resources.XNavPg}}" Margin="0,0,10,0" />
                        <TextBlock x:Name="RefreshNavPg" Text="{Binding Source={x:Static res:Resources.XRefresh}}" Foreground="{StaticResource {x:Static SystemColors.HotTrackBrushKey}}" Cursor="Hand" ToolTip="{Binding Source={x:Static res:Resources.XRefreshFileTp}}" MouseLeftButtonUp="RefreshNavPgMouseLeftButtonUp" MouseEnter="RefreshMouseEnter" MouseLeave="RefreshMouseLeave"></TextBlock>
                    </StackPanel>
                    <ComboBox x:Name="CboNavPage" Margin="0,0,0,5" SelectionChanged="CboNavPageSelectionChanged" />
                </StackPanel>
                <Expander x:Name="ExpTile" Header="{Binding Source={x:Static res:Resources.XExpTile}}" Margin="0,0,0,5" IsExpanded="False" >
                    <StackPanel  Orientation="Vertical" Margin="5,0,0,5" >
                        <TextBlock Text="{Binding Source={x:Static res:Resources.XTileCount}}" Margin="0,5" />
                        <TextBox x:Name="TxtTileCount" Margin="0,0,0,5" MaxLength="2" Width="60" HorizontalAlignment="Left" PreviewTextInput="TxtTileCountTextInput" TextChanged="TxtTileCountTextChanged" />
                        <TextBlock Text="{Binding Source={x:Static res:Resources.XTileTitle}}" Margin="0,0,0,5" />
                        <TextBox x:Name="TxtTileTitle" Margin="0,0,0,5" MaxLength="64" TextChanged="TxtTileTitleTextChanged" />
                        <StackPanel Orientation="Horizontal"  Margin="0,0,0,5">
                            <TextBlock Text="{Binding Source={x:Static res:Resources.XTileImgBg}}" Margin="0,0,10,0"/>
                            <TextBlock x:Name="RefreshBgTile" Text="{Binding Source={x:Static res:Resources.XRefresh}}" Foreground="{StaticResource {x:Static SystemColors.HotTrackBrushKey}}" Cursor="Hand" ToolTip="{Binding Source={x:Static res:Resources.XRefreshImgTp}}" MouseLeftButtonUp="RefreshIconsMouseLeftButtonUp" MouseEnter="RefreshMouseEnter" MouseLeave="RefreshMouseLeave"></TextBlock>
                        </StackPanel>
                        <ComboBox x:Name="CboIconBg" Margin="0,0,0,5" SelectionChanged="CboIconBgSelectionChanged" />
                    </StackPanel>
                </Expander>
                <Expander x:Name="ExpCap" Header="{Binding Source={x:Static res:Resources.XExpCap}}"  Margin="0,0,0,5" IsExpanded="False" Expanded="ExpCapExpanded">
                    <StackPanel x:Name="StackCapabilities" Orientation="Vertical" Margin="5,0,0,5" >
                        <CheckBox x:Name="ChkGamerSrv" Content="{Binding Source={x:Static res:Resources.XCapGamer}}" Margin="0,5,0,0" />
                        <CheckBox x:Name="ChkIdentDevive" Content="{Binding Source={x:Static res:Resources.XCapIdDev}}"  />
                        <CheckBox x:Name="ChkIdentUser" Content="{Binding Source={x:Static res:Resources.XCapIdUse}}" />
                        <CheckBox x:Name="ChkLocation" Content="{Binding Source={x:Static res:Resources.XCapLoc}}" />
                        <CheckBox x:Name="ChkMediaLib" Content="{Binding Source={x:Static res:Resources.XCapMedLib}}"  />
                        <CheckBox x:Name="ChkMicrophone" Content="{Binding Source={x:Static res:Resources.XCapMic}}" />
                        <CheckBox x:Name="ChkNetworking" Content="{Binding Source={x:Static res:Resources.XCapNet}}"  />
                        <CheckBox x:Name="ChkPhoneDialer" Content="{Binding Source={x:Static res:Resources.XCapDialer}}" />
                        <CheckBox x:Name="ChkPushNotif" Content="{Binding Source={x:Static res:Resources.XCapPhush}}" />
                        <CheckBox x:Name="ChkSensor" Content="{Binding Source={x:Static res:Resources.XCapSensor}}" />
                        <CheckBox x:Name="ChkWebBrowser" Content="{Binding Source={x:Static res:Resources.XCapWeb}}" />
                        <CheckBox x:Name="ChkCamera" Content="{Binding Source={x:Static res:Resources.XCapCam}}" />
                        <CheckBox x:Name="ChkContacts" Content="{Binding Source={x:Static res:Resources.XCapContat}}" />
                        <CheckBox x:Name="ChkAppointments" Content="{Binding Source={x:Static res:Resources.XCapAppoint}}" />
                    </StackPanel>
                </Expander>
                <Expander x:Name="ExpMore" Header="{Binding Source={x:Static res:Resources.XExpMore}}" Margin="0,0,0,5" IsExpanded="False">
                    <StackPanel x:Name="StackMoreInfo" Orientation="Vertical" Margin="5,0,0,5" >
                        <CheckBox x:Name="ChkHasSettings" Content="{Binding Source={x:Static res:Resources.XHasSett}}" Margin="0,5,0,0" Click="ChkInExpMore" />
                        <CheckBox x:Name="ChkIsBeta" Content="{Binding Source={x:Static res:Resources.XIsBeta}}" Click="ChkInExpMore" />
                        <CheckBox x:Name="ChkSingleInst" Content="{Binding Source={x:Static res:Resources.XSingInst}}" Click="ChkInExpMore" />
                        <CheckBox x:Name="ChkHubType1" Content="{Binding Source={x:Static res:Resources.XHub1}}" Click="ChkInExpMore" />
                        <StackPanel Orientation="Horizontal">
                            <RadioButton x:Name="opt32pixel" GroupName="bitpixel" Content="32" Checked="Opt32PixelChecked" />
                            <RadioButton x:Name="opt16pixel" GroupName="bitpixel" Content="{Binding Source={x:Static res:Resources.X16Pix}}" IsChecked="True" Margin="8,0,0,0" Checked="Opt16PixelChecked" />
                        </StackPanel>
                    </StackPanel>
                </Expander>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
